package com.itany.corejava.code07_面向对象;

/**
 * @author: 石小俊
 * @date: 2023年03月06日 15:00
 * @version: 1.0
 */
public class Student {
    String name;
    int age;
    String gender;
    String major;
    String classNo;

    public void recode(){
        System.out.println("姓名:"+name+",年龄:"+age+",性别:"+gender+",专业:"+major+",班级:"+classNo);
    }
}
class TestStudent{
    public static void main(String[] args) {
        Student student = new Student();
        student.name = "admin";
        student.age = 20;
        student.gender = "男";
        student.major = "计算机科学与技术";
        student.classNo = "WBJ2302X";
        student.recode();
    }
}
